
<%@ page language="java" %>
<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.operations.release.forms.AssmReleaseForm,
                 com.scalar.chiptrack.utils.StringUtils,
                 com.scalar.chiptrack.users.Functionality,
                 com.scalar.chiptrack.users.User,
                 com.scalar.chiptrack.commons.Constants"%>


<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>


<chiptrack:checkLogon sourcePage="/testRelease.do" />
<% String chipTracContext = "/" + ConfigManager.getChipTracContext();  %>
<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac </TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet"></HEAD>
<SCRIPT language="JavaScript">
function sendMail ( assmReleaseId )
{
    newWindow = window.open ('<%=chipTracContext%>/sendAssmMail.do?type=Assembly&assmReleaseId=' + assmReleaseId,'sendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}

function sendMail ( releaseId, category, vendor )
{
    newWindow = window.open ('<%=chipTracContext%>/releaseSendMail.do?releaseId=' + releaseId + '&vendor='+vendor+'&Category='+category+'&processType=Test','testSendMailPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=yes,width=800,height=550,resizable=yes');
    newWindow.focus();
}        

function confirmRelease()
{
    document.testReleaseForm.action='<%=chipTracContext%>/testRelease.do?action=approve&isApprove=true';
    document.testReleaseForm.submit();
}
function cancelRelease()
{
    document.testReleaseForm.action='<%=chipTracContext%>/testRelease.do?action=cancel&isCancelled=true';
    document.testReleaseForm.submit();
}
function closeRelease()
{
    document.testReleaseForm.action='<%=chipTracContext%>/testRelease.do?action=close&isClosed=true';
    document.testReleaseForm.submit();
}

</SCRIPT>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
    <html:form action="/testRelease.do" name="testReleaseForm" type="com.scalar.chiptrack.operations.release.forms.TestReleaseForm">
        <%String bgColor = "bgcolor='#FFFFEE'";%>
        <logic:equal name="testReleaseForm" property="status" value="<%=Constants.RELEASE_STATUS_CANCELLED%>">
            <SCRIPT>document.body.background="<%=chipTracContext%>/jsp/includes/images/cancelled_icon.gif";</SCRIPT>
            <%bgColor = "";%>
        </logic:equal>
        <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='90%' bordercolor='#000000' ALIGN='CENTER'>
            <logic:equal  name="isApprove" value="true">
            <logic:equal name="showMessage" value="TRUE">
            <TR><TD colspan="4" align='left'><font class='NArialS'color='blue'><b><%=Constants.NO_APPROVE_RIGHTS %></b></font></TD></TR>
            </logic:equal>
            <TR>
                <TD colspan="4" align='left' class="NArialL">
                    <chiptrack:info styleClass="NArialL"/><br><chiptrack:errors styleClass="NArialL"/>
                </TD>
            </TR>
            <TR>
                <TD colspan='4'>
                    <font class='NArialL'>
                        <font color='red'>
                            Are you sure, you want to Approve this Test Release &nbsp;&nbsp;
                        </font>
                    </font>
                    <chiptrack:restrictedLink functionality='<%=Functionality.APPROVE_TEST_RELEASE %>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:confirmRelease();' onmouseover="window.status='Confirm this Test Release';return true" onmouseout="window.status='';return true">
                        <img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'>
                    </chiptrack:restrictedLink>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="<%=chipTracContext%>/testRelease.do?action=modify&releaseId=<bean:write name="testReleaseForm" property="releaseId" />" onMouseOver="window.status='Go Back to Main Test Release Menu';return true" onMouseOut="window.status='';return true">
                        <img src='<%=chipTracContext%>/jsp/includes/images/back.gif' border='0'>
                    </a>
                </TD>
            </TR>
            </logic:equal>

            <logic:equal  name="isCancelled" value="true">
            <logic:equal name="showMessage" value="TRUE">
                <TR><TD colspan="4" align='left'><font class='NArialS'color='blue'><b><%=Constants.NO_APPROVE_RIGHTS %></b></font></TD></TR>
            </logic:equal>
            <TR>
                <TD colspan='4'>
                <font class='NArialL'><font color='red'>Are you sure, you want to Cancel this Test Release &nbsp;&nbsp;</font></font>
                <chiptrack:restrictedLink functionality='<%=Functionality.APPROVE_TEST_RELEASE %>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:cancelRelease();' onmouseover="window.status='Cancel this Test Release';return true" onmouseout="window.status='';return true"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></chiptrack:restrictedLink>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <a href="<%=chipTracContext%>/testRelease.do?action=searchReleases" onMouseOver="window.status='Go Back to Main Test Release Menu';return true" onMouseOut="window.status='';return true">
                <img src='<%=chipTracContext%>/jsp/includes/images/back.gif' border='0'></a>
                </TD>
            </TR>
            </logic:equal>

            <logic:equal  name="isClosed" value="true">
            <logic:equal name="showMessage" value="TRUE">
                <TR><TD colspan="4" align='left'><font class='NArialS'color='blue'><b><%=Constants.NO_APPROVE_RIGHTS %></b></font></TD></TR>
            </logic:equal>
            <TR>
                <TD colspan='4'>
                <font class='NArialL'><font color='red'>Are you sure, you want to Close this Test Release &nbsp;&nbsp;</font></font>
                <chiptrack:restrictedLink functionality='<%=Functionality.APPROVE_TEST_RELEASE %>' action='<%=User.USER_ACTION_MODIFY%>' href='javascript:closeRelease();' onmouseover="window.status='Close this Test Release';return true" onmouseout="window.status='';return true"><img src='<%=chipTracContext%>/jsp/includes/images/confirm.gif' border='0'></chiptrack:restrictedLink>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <a href="<%=chipTracContext%>/testRelease.do?action=searchReleases" onMouseOver="window.status='Go Back to Main Test Release Menu';return true" onMouseOut="window.status='';return true">
                <img src='<%=chipTracContext%>/jsp/includes/images/back.gif' border='0'></a>
                </TD>
            </TR>
            </logic:equal>

            <TR>
                <TD WIDTH='10%'>
                    <img height='70' src="<%=chipTracContext%>/jsp/includes/images/scalar_logo.jpg">
                </TD>
                <TD width="80%" valign="center">&nbsp;</TD>
                <TD width="5%" valign="center" >
                    <a href="javascript:window.print();" title='Click to Print Test Release Instructions'><img height="80" width="60" src="<%=chipTracContext%>/jsp/includes/images/printer_icon_small.gif" border="0"></a>
                </TD>
                <TD width="5%" valign="center">
                    <%--<a href="javascript:sendMail('<bean:write name="testReleaseForm" property="releaseId"/>');" title='Click to Mail Test Release Instructions'><img src="<%=chipTracContext%>/jsp/includes/images/email1.gif" border="0"></a>--%>
                    <a href="javascript:sendMail('<nested:write name="testReleaseForm" property="releaseId"/>','<nested:write name="releaseForm" property="category"/>','<nested:write name="testReleaseForm" property="toVendorName"/>');" title='Click to Mail Test Release Instructions'><img src="<%=chipTracContext%>/jsp/includes/images/email1.gif" border="0"></a>
                </TD>
            </TR>
        </TABLE>
        <input type='hidden' name='releaseId' value='<bean:write name="testReleaseForm" property="releaseId"/>'/>
        <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='90%' bordercolor='#000000' ALIGN='CENTER'>
            <TR>
                <TD WIDTH='100%' bordercolor='#000000' style='border-style: solid; border-width: 2'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='black'>
                        <TR>
                            <TD COLSPAN='2' WIDTH='100%' ALIGN='center' CLASS='subsectiontitlegray' bgcolor='#DEE1E2'><B>&nbsp;<bean:write  name="testReleaseForm" property="toVendorName"/></B></TD>
                        </TR>
                        <TR>
                            <TD COLSPAN='2' WIDTH='100%' ALIGN='center' CLASS='subsectiontitlegray' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2' bgcolor='#DEE1E2'><B>Test Request</B></TD>
                        </TR>
                        <TR>
                            <TD COLSPAN='2' WIDTH='100%' ALIGN='left' CLASS='NArialL' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2' <%=bgColor%>><b>Customer</b></TD>
                        </TR>
                        <TR>
                            <TD WIDTH='70%' <%=bgColor%>>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='blue'>
                                    <TR>
                                        <TD WIDTH='25%' CLASS='NArialRS'>Customer name:</TD>
                                        <TD WIDTH='25%' CLASS='NArialRS'>&nbsp;<bean:write  name="testReleaseForm" property="customerName"/></TD>
                                        <TD WIDTH='50%' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                    <TR>
                                        <TD ALIGN='left' CLASS='NArialRS'><bean:message key="label.operation.release.internalContactPersons"/>:</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;Name:</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;Email:</TD>
                                    </TR>
                                    <bean:size id="vendorListSize" name="testReleaseForm" property="releaseInfoContactPeronsList"/>
                                    <logic:greaterThan value="0" name="vendorListSize">
                                    <nested:iterate name="testReleaseForm" property="releaseInfoContactPeronsList" id="releaseInfoContactPerson" indexId="itIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                                    <TR>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;<nested:write property="name"/></TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;<nested:write property="email"/></TD>
                                    </TR>
                                    </nested:iterate>
                                    </logic:greaterThan>
                                </TABLE>
                            </TD>
                            <TD WIDTH='30%' VALIGN='TOP' style='border-left-style: solid; border-left-width: 2; border-right-width: 2; border-top-width: 2; border-bottom-width: 2'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' <%=bgColor%>>
                                    <%--<TR>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>Customer #</TD>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>
                                            : &nbsp;<bean:write  name="testReleaseForm" property="customerNumber"/>
                                        </TD>
                                    </TR>--%>
                                    <TR>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>Date <!--YYYY/DD/MM--></TD>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>
                                            <%--: &nbsp;<%=testReleaseForm.getReleaseDate() != null ? StringUtils.formatDate( testReleaseForm.getReleaseDate(),"MM/dd/yyyy","yyyy/dd/MM" ): ""%>--%>
                                            : &nbsp;<bean:write  name="testReleaseForm" property="releaseDate"/>
                                        </TD>
                                    </TR>
                                    <TR>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>Documented By</TD>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>
                                            : &nbsp;<bean:write  name="testReleaseForm" property="instructor"/>
                                        </TD>
                                    </TR>
                                    <TR>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'><bean:message key="label.operation.release.test.PONo"/></TD>
                                        <TD WIDTH='50%' CLASS='NArialRS' bordercolor='#000000' style='border-left-width: 2; border-right-width: 2; border-top-style: solid; border-top-width: 2'>
                                            : &nbsp;<bean:write  name="testReleaseForm" property="poNumber"/>
                                        </TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>
            <TR><TD WIDTH='100%'  bordercolor='#000000' style='border-style: solid; border-width: 2'>
            <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000'  <%=bgColor%>>
                <TR><TD COLSPAN='2' CLASS='NArialL'>Identification</TD></TR>
                <TR><TD WIDTH='17%'>&nbsp;</TD>
                    <TD WIDTH='83%'>
                        <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='4' WIDTH='100%' >
                            <TR>
                                <TD WIDTH='22%' CLASS='NArialRS'><bean:message key="label.operation.release.test.ReleaseNo"/>:</TD>
                                <TD WIDTH='20%' CLASS='NArialRS'><bean:write name="testReleaseForm" property="releaseNo"/>
                                </TD>
                                <TD WIDTH='20%' ALIGN='left' CLASS='NArialRS'>Revision No:</TD>
                                <TD WIDTH='38%' ALIGN='left' CLASS='NArialRS'>
                                  </TD>
                            </TR>
                            <TR>
                                <TD CLASS='NArialRS'>Request Type:</TD>
                                <TD CLASS='NArialRS'><bean:write name="testReleaseForm" property="releaseType"/></TD>
                                <TD CLASS='NArialRS'>&nbsp;</TD>
                                <TD CLASS='NArialRS'>&nbsp;</TD>
                            </TR>
                        </TABLE>
                    </TD>
                </TR>
            </TABLE>
            </TD>
        </TR>
        <TR><TD>&nbsp;</TD></TR>
        <TR>
            <TD WIDTH='100%' bordercolor='#000000' style='border-style: solid; border-width: 2'>
                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000'  <%=bgColor%>>
                    <TR><TD COLSPAN='2' CLASS='NArialL'>Test Info</TD></TR>
                    <TR><TD WIDTH='17%'>&nbsp;</TD>
                        <TD WIDTH='83%'>
                            <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='4' WIDTH='100%' >
                                <TR>
                                    <TD WIDTH='22%' CLASS='NArialRS'>Device PN:</TD>
                                    <TD WIDTH='20%' CLASS='NArialRS'><bean:write name="testReleaseForm" property="toPartNumber"/></td>
                                    <TD width='20%' ALIGN='left' CLASS='NArialRS'>Total Appx. Test Qty:</TD>
                                    <TD width='38%' ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="totalPulledQty"/></TD>


                                </TR>
                                <TR>
                                    <TD ALIGN='left' CLASS='NArialRS'>Package Type:</TD>
                                    <TD ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="packageType"/></TD>

                                    <TD ALIGN='left' CLASS='NArialRS'>Pin Count:</TD>
                                    <TD ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="pinCount"/></TD>
                                </TR>
                                <TR>
                                    <TD ALIGN='left' CLASS='NArialRS'>Expected Start Date:</TD>
                                    <TD ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="expectedStartDate"/></TD>

                                    <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                    <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                </TR>

                                <TR>
                                    <TD ALIGN='left' CLASS='NArialRS'>Test Spec:</TD>
                                    <TD ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="testSpecFileName"/></TD>
                                    <TD ALIGN='left' CLASS='NArialRS'>
                                        Test Spec Revision No:
                                    </TD>
                                    <TD ALIGN='left' CLASS='NArialRS'>
                                        <bean:write name="testReleaseForm" property="testSpecRevisionNo"/>
                                    </TD>
                                </TR>
                                <TR>
                                    <TD ALIGN='left' CLASS='NArialRS'><bean:message key="label.operation.release.test.diagramOne"/>:</TD>
                                    <TD COLSPAN='3' ALIGN='left' CLASS='NArialRS'><bean:write name="testReleaseForm" property="physicalFileName"/></TD>
                                </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>
            <TR>
                <TD WIDTH='100%' bordercolor='#000000' style='border-style: solid; border-width: 2'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000'  <%=bgColor%>>
                        <TR>
                            <TD COLSPAN='2' CLASS='NArialL' colspan='4'><B><bean:message key="label.operation.release.test.subConContactInfoHeading"/></B></TD>
                        </TR>
                        <TR>
                            <TD WIDTH='17%'>&nbsp;</TD>
                            <TD WIDTH='83%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='4' WIDTH='100%' <%=bgColor%>>
                                    <TR>
                                        <TD ALIGN='left' WIDTH='42%'  CLASS='NArialRS'><b>Email:</b></TD>
                                        <TD ALIGN='left' WIDTH='58%'  CLASS='NArialRS'><b>Name:</b></TD>
                                    </TR>
                                    <nested:size id="vendorContListSize" property="releaseInfoVendorContactPeronsList" />
                                    <logic:greaterThan value="0" name="vendorContListSize">
                                    <nested:iterate property="releaseInfoVendorContactPeronsList" id="releaseInfoVendorContactPerson" indexId="idIndex" type="com.scalar.chiptrack.operations.release.ContactPerson" >
                                    <TR>
                                        <TD ALIGN='left' CLASS='NArialRS'><nested:write property="name"/></TD>
                                        <TD ALIGN='left' CLASS='NArialRS'><nested:write property="email"/></TD>
                                    </TR>
                                    </nested:iterate>
                                    </logic:greaterThan>
                                    <TR><TD colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height='10'></TD></TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>
            <TR>
                <TD WIDTH='100%' bordercolor='#000000' style='border-style: solid; border-left-width: 2; border-right-width: 2; border-top-width: 2; border-bottom-width: 0'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000' <%=bgColor%>>
                        <TR>
                            <TD COLSPAN='2' WIDTH='100%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000' <%=bgColor%>>
                                    <TR>
                                        <TD WIDTH='25%' CLASS='NArialL'><B>Inventory Information</B></TD>
                                        <TD WIDTH='25%' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD WIDTH='25%' ALIGN='center' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD WIDTH='25%' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                        <TR><TD COLSPAN='3'>&nbsp;</TD></TR>
                        <TR>
                            <TD COLSPAN='3' WIDTH='100%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000' <%=bgColor%>>
                                    <TR>
                                        <TD WIDTH='25%' CLASS='NArialL'><B>&nbsp;&nbsp;Test Lot Information</B></TD>
                                        <TD WIDTH='25%' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD WIDTH='25%' ALIGN='center' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD WIDTH='25%' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                </table>
                            </TD>
                        </TR>
                        <TR>
                            <TD COLSPAN='3' bordercolor='#000000'>
                                <TABLE BORDER='1' BORDERCOLOR='#000000' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' <%=bgColor%>>
                                    <TR>
                                        <TD WIDTH='15%' ALIGN='center' CLASS='NArialL' style='border-left-style: none; border-left-width: 0;'>Device</TD>
                                        <TD WIDTH='15%' ALIGN='center' CLASS='NArialL'>Lot Number </TD>
                                        <TD WIDTH='15%' ALIGN='center' CLASS='NArialL'>Test Lot Number </TD>
										<TD WIDTH='15%' ALIGN='center' CLASS='NArialL'>Appx. Qty to Test</TD>
										<TD WIDTH='10%' ALIGN='center' CLASS='NArialL'>Assembly<br>Location</TD>
                                    </TR>
                                    <nested:iterate property="pulledLotsList" id="pulledLot" indexId="pulledLotIndex" type="com.scalar.chiptrack.operations.release.ReleaseLot" >
                                    <TR>
                                        <TD ALIGN='center' CLASS='NArialRS' style='border-left-style: none; border-left-width: 0;'>
                                            &nbsp;<bean:write  name="testReleaseForm" property="fromPartNumber"/>
                                        </TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;<nested:write property="lotNumber" /></TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;<nested:write property="shippedLotNumber" /></TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;<nested:write property="qtyPulled"/></TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;<bean:write name="testReleaseForm" property="fromVendorName"/></TD>
                                    </TR>
                                    </nested:iterate>
                                    <TR>
                                        <TD ALIGN='center' CLASS='NArialRS' style='border-left-style: none; border-left-width: 0;'>
                                            &nbsp;
                                        </TD>
                                        <TD ALIGN='center' CLASS='NArialRS' style='border-left-style: none; border-left-width: 0;'>
                                            &nbsp;
                                        </TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;Total Appx.Test Qty</TD>
                                        <TD ALIGN='center' CLASS='NArialRS'><bean:write name="testReleaseForm" property="totalPulledQty"/></TD>
                                        <TD ALIGN='center' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>
            <TR>
                <TD WIDTH='100%'  bordercolor='#000000' style='border-style: solid; border-width: 2'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000' <%=bgColor%>>
                        <TR>
                            <TD WIDTH='70%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='black'>
                                    <TR>
                                        <TD colspan='4' WIDTH='100%' CLASS='NArialL'><B>Special Instructions.</B></TD>
                                    </TR>
                                    <TR>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS' COLSPAN="3">
                                            <bean:write  name="testReleaseForm" property="specialInstructions" filter="false"/>&nbsp;
                                        </TD>
                                    </TR>
                                    <TR>
                                        <TD width='24%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD width='25%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD width='25%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD width='26%' ALIGN='center' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                </TABLE>
                            </TD>
                            <TD WIDTH='30%' VALIGN='TOP'>&nbsp;</TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>

            <logic:greaterThan name="testReleaseForm" property="tapeReelQty" value="0">
            <TR>
                <TD WIDTH='100%' bordercolor='#000000'  style='border-style: solid; border-width: 2'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' bordercolor='#000000' <%=bgColor%>>
                        <TR>
                            <TD WIDTH='80%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='4' WIDTH='100%' bordercolor='black'>
                                    <TR>
                                        <TD colspan='5' WIDTH='100%' <%--BGCOLOR='#DEE1E2'--%> CLASS='NArialL'><B>Reel Infomartion</B></TD>
                                    </TR>
                                    <TR>
                                        <TD width='17%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD width='20%' ALIGN='left' CLASS='NArialRS'>Reel Qty:</TD>
                                        <TD width='20%' ALIGN='left' CLASS='NArialRS'>&nbsp;<bean:write  name="testReleaseForm" property="tapeReelQty"/></TD>
                                        <TD width='20%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD width='23%' ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                    <TR>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                        <TD ALIGN='left' CLASS='NArialRS'>&nbsp;</TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            </logic:greaterThan>

            <TR><TD>&nbsp;</TD></TR>
            <TR>
                <TD WIDTH='100%'  bordercolor='#000000' style='border-style: solid; border-width: 2'>
                    <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' <%=bgColor%>>
                        <TR>
                            <TD WIDTH='100%'>
                                <TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%' <%=bgColor%>>
                                    <TR>
                                        <%--<TD WIDTH='17%' VALIGN='top' CLASS='NArialL' nowrap><B>Shipping Instructions</B></TD>--%>
                                        <TD WIDTH='17%' VALIGN='top' CLASS='NArialL' nowrap><B>Upon Completion, Please Ship to Vendor <bean:write name="testReleaseForm" property="shipToVendorName"/></B></TD>
                                        <TD WIDTH='53%' CLASS='NArialRS'>&nbsp;
                                            <bean:write  name="testReleaseForm" property="formattedShippingAddress" filter="false"/>
                                        </TD>
                                        <TD WIDTH='10%' ALIGN='left' VALIGN='top' CLASS='NArialRS' nowrap>Send Ship Alerts to:</TD>
                                        <TD WIDTH='20%' ALIGN='left' VALIGN='top' CLASS='NArialRS'><bean:write  name="testReleaseForm" property="formattedShipalerts" filter="false"/></TD>
                                    </TR>
                                    <TR>
                                        <TD ALIGN='left' COLSPAN='4' CLASS='NArialL'><%--Freight Forwarder : &nbsp;<bean:write  name="testReleaseForm" property="freightCarrier"/>--%></TD>
                                    </TR>
                                </TABLE>
                            </TD>
                        </TR>
                    </TABLE>
                </TD>
            </TR>
            <TR><TD>&nbsp;</TD></TR>
        </TABLE>
    </html:form>
</BODY>
</HTML>
<%--<% }catch(Exception e){e.printStackTrace();} %>--%>
